package com.ruoyi.info.domain;

import com.fasterxml.jackson.annotation.JsonInclude;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

import java.util.ArrayList;
import java.util.List;

/**
 * 小区对象 sys_village
 * 
 * @author ruoyi
 * @date 2022-10-04
 */
public class SysVillage extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 小区ID */
    private Long id;

    /** 小区名称 */
    @Excel(name = "小区名称")
    private String name;

    /** 小区地址 */
    @Excel(name = "小区地址")
    private String address;

    /** 小区管理员 */
    @Excel(name = "小区管理员")
    private String admin;

    /** 管理员电话 */
    @Excel(name = "管理员电话")
    private String phone;

    /** 检测状态 - 0未检测，1检测中，2停止检测 */
    @Excel(name = "检测状态 - 0未检测，1检测中，2停止检测")
    private Integer state;

    //当前对象的儿子
    @JsonInclude(JsonInclude.Include.NON_EMPTY)
    private List<SysBuilding> children = new ArrayList<SysBuilding>();

    @Override
    public String toString() {
        return "SysVillage{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", address='" + address + '\'' +
                ", admin='" + admin + '\'' +
                ", phone='" + phone + '\'' +
                ", state=" + state +
                ", children=" + children +
                '}';
    }


    public void setId(Long id) 
    {
        this.id = id;
    }

    public List<SysBuilding> getChildren() {
        return children;
    }

    public void setChildren(List<SysBuilding> children) {
        this.children = children;
    }

    public Long getId()
    {
        return id;
    }
    public void setName(String name) 
    {
        this.name = name;
    }

    public String getName() 
    {
        return name;
    }
    public void setAddress(String address) 
    {
        this.address = address;
    }

    public String getAddress() 
    {
        return address;
    }
    public void setAdmin(String admin) 
    {
        this.admin = admin;
    }

    public String getAdmin() 
    {
        return admin;
    }
    public void setPhone(String phone) 
    {
        this.phone = phone;
    }

    public String getPhone() 
    {
        return phone;
    }
    public void setState(Integer state)
    {
        this.state = state;
    }

    public Integer getState()
    {
        return state;
    }

}
